package com.numbfish.ch_10.six_blocking_queue.LinkedBlockingQueueTest1.src.extthread ;

import com.numbfish.ch_10.six_blocking_queue.LinkedBlockingQueueTest1.src.service.MyServiceB;

public class ThreadB extends Thread {

	private MyServiceB service;

	public ThreadB(MyServiceB service) {
		super();
		this.service = service;
	}

	@Override
	public void run() {
		for (int i = 0; i < 100; i++) {
			service.serviceMethod();
		}
		System.out.println("z");
	}

}